package org.example.casemodule.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class LawyerPerformanceVO {
    /**
     *  "period": "2024-Q2",
     *     "lawyers": [
     *       {
     *         "lawyerId": 20001,
     *         "name": "张律师",
     *         "casesTotal": 42,
     *         "casesCompleted": 38,
     *         "successRate": 85.7,
     *         "avgResponseHours": 8.5,
     *         "avgProcessDays": 45,
     *         "clientRating": 4.8,
     *         "performanceLevel": "A",
     *         "comparison": "高于85%的同领域律师"
     *       }
     *     ]
     */
    private Date period;
    private List<LawyerPerformanceDetail> lawyers;
    /**
     * 律师绩效评估详情
     */
    @Data
    public static class LawyerPerformanceDetail {
        private Long lawyerId;
        private String name;
        private Integer casesTotal;
        private Integer casesCompleted;
        private BigDecimal successRate;
        private BigDecimal avgResponseHours;
        private Integer clientRating;
        private BigDecimal performanceLevel;
        private String comparison;
    }
}
